package com.example.bysj.domain;
//201902104061徐中堂
import com.example.bysj.domain.authority.Actor;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public final class Student extends Actor
		implements Comparable<Student>, Serializable {
	private Integer id;
	private String name;
	private String no;
	private String remarks;
	private StudentClass studentClass;
//	private Department department;
	//导师
	private Teacher supervisor;

	@Override
	public int compareTo(Student other) {
		// no为排序依据
		return this.no.compareTo(other.no);
	}
}
